Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PaaS support for CLI #296

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

PaaS support for CLI #296

wants to merge 5 commits into from

Conversation

satakshigarg
Copy link
Contributor

Adding PaaS functionalities to CLI
Signed-off-by: satakshigarg [email protected]

satakshigarg and others added 5 commits January 30, 2023 16:21
@satakshigarg satakshigarg self-assigned this Feb 2, 2023
@satakshigarg
Copy link
Contributor Author

satakshigarg commented Feb 6, 2023

CLI Layout for PaaS

./civo app --help
Manage Applications inside your Civo account

Usage:
  civo app [flags]
  civo app [command]

Aliases:
  app, apps, application, applications

Available Commands:
  config      Configure your application
  create      Create a new application
  ls          List all appplications
  remove      Remove an application
  show        Prints information about an App
  update      Update an App

Flags:
  -h, --help   help for app

Global Flags:
      --config string   config file (default is $HOME/.civo.json)
  -f, --fields string   output fields for custom format output (use -h to determine fields)
  -o, --output string   output format (json/human/custom) (default "human")
      --pretty          Print pretty the json output
      --region string   Choose the region to connect to, if you use this option it will use it over the default region
  -y, --yes             Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively

Use "civo app [command] --help" for more information about a command.

------------------------------------------------------------------------------------------------------------------------

./civo app create --help
Create a new application

Usage:
  civo app create [flags]

Aliases:
  create, new, add

Examples:
civo app create APP_NAME [flags]

Flags:
  -b, --branch string    Branch for the git repo
  -g, --git-url string   URL of the git repo
  -h, --help             help for create
  -i, --image string     Container Image to pull
  -s, --size string      Size of the application
  -t, --tag string       Tag for the git repo

Global Flags:
      --config string   config file (default is $HOME/.civo.json)
  -f, --fields string   output fields for custom format output (use -h to determine fields)
  -o, --output string   output format (json/human/custom) (default "human")
      --pretty          Print pretty the json output
      --region string   Choose the region to connect to, if you use this option it will use it over the default region
  -y, --yes             Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively

------------------------------------------------------------------------------------------------------------------------

./civo app list --help
List all appplications

Usage:
  civo app ls [flags]

Aliases:
  ls, list, all

Examples:
civo app ls

Flags:
  -h, --help   help for ls

Global Flags:
      --config string   config file (default is $HOME/.civo.json)
  -f, --fields string   output fields for custom format output (use -h to determine fields)
  -o, --output string   output format (json/human/custom) (default "human")
      --pretty          Print pretty the json output
      --region string   Choose the region to connect to, if you use this option it will use it over the default region
  -y, --yes             Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively

------------------------------------------------------------------------------------------------------------------------

./civo app delete --help
Remove an application

Usage:
  civo app remove [flags]

Aliases:
  remove, delete, rm

Examples:
civo app rm APP_NAME

Flags:
  -h, --help   help for remove

Global Flags:
      --config string   config file (default is $HOME/.civo.json)
  -f, --fields string   output fields for custom format output (use -h to determine fields)
  -o, --output string   output format (json/human/custom) (default "human")
      --pretty          Print pretty the json output
      --region string   Choose the region to connect to, if you use this option it will use it over the default region
  -y, --yes             Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively

------------------------------------------------------------------------------------------------------------------------

./civo app update --help
Update an App

Usage:
  civo app update [flags]

Aliases:
  update, edit, modify, change, scale, resize

Examples:
civo app update APP_NAME --flags

Flags:
      --firewall-id string    Firewall ID of the application
  -h, --help                  help for update
  -n, --name string           Updated Name of the application
  -c, --process-count int     The number by which you want to scale the process. E.g. 2, 3, etc.
  -t, --process-type string   The type of process you want to scale. E.g. web, worker, etc.
  -s, --size string           Updated Size of the application

Global Flags:
      --config string   config file (default is $HOME/.civo.json)
  -f, --fields string   output fields for custom format output (use -h to determine fields)
  -o, --output string   output format (json/human/custom) (default "human")
      --pretty          Print pretty the json output
      --region string   Choose the region to connect to, if you use this option it will use it over the default region
  -y, --yes             Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively

------------------------------------------------------------------------------------------------------------------------

./civo app show --help
Prints information about an App

Usage:
  civo app show [flags]

Aliases:
  show, get, info

Examples:
civo app show APP_NAME

Flags:
  -h, --help   help for show

Global Flags:
      --config string   config file (default is $HOME/.civo.json)
  -f, --fields string   output fields for custom format output (use -h to determine fields)
  -o, --output string   output format (json/human/custom) (default "human")
      --pretty          Print pretty the json output
      --region string   Choose the region to connect to, if you use this option it will use it over the default region
  -y, --yes             Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively

------------------------------------------------------------------------------------------------------------------------

./civo app config --help
Configure your application

Usage:
  civo app config [flags]
  civo app config [command]

Aliases:
  config, conf

Available Commands:
  set         Set application config
  show        Show application config

Flags:
  -h, --help   help for config

Global Flags:
      --config string   config file (default is $HOME/.civo.json)
  -f, --fields string   output fields for custom format output (use -h to determine fields)
  -o, --output string   output format (json/human/custom) (default "human")
      --pretty          Print pretty the json output
      --region string   Choose the region to connect to, if you use this option it will use it over the default region
  -y, --yes             Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively

Use "civo app config [command] --help" for more information about a command.

@haardikdharma10 haardikdharma10 changed the title Updated go.mod PaaS support for CLI Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants